package day11;

/**
 * @author oldliu
 * @since 1.0
 */
public class Zuzhuang {
    public static void main(String[] args) {
        PC p=new PC();
        p.setBrand("DELL G5");
        p.setMoney(5699);
        p.show();
        System.out.println("-------------给usb第一个口接上一个鼠标");
        p.setB1(new USBMouse("罗技游戏天骄",499));
        p.show();
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        p.work();
        System.out.println("><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
        System.out.println("-------------给usb第二个口接上一个电风扇");
        p.setB2(new USBFan("杨子风扇"));
        p.show();
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        p.work();
        System.out.println("usb 2口 换上相机!!!");
        //p.setB2(null);//模拟移除
        p.setB2(new UsbBlueCamera("尼康单反"));
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        p.work();
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
    }
}
